<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>5-animate动画基本使用</title>
		<script type="text/javascript" src="js/jquery2.1.4.min.js"></script>
		<style type="text/css">
			.box{
				width:100px;
				height:100px;
				background:red;
			}
		</style>
	</head>
	<body>
		<button>点击</button>
		<div class="box"></div>
		<script type="text/javascript">
			$(function(){
				console.log($('button'));
				$('button').click(function(){
					//alert(1);
					$('.box').animate({
						//{}对象 属性名:属性值
						width:200,
						height:200
					},'slow');
				});
			});
		</script>
	</body>
</html>
